4e06b5a41e0148b800bbea7759d81320eeb251d7,dependencymanager/annotation/src/main/java/org/apache/felix/dm/annotation/plugin/bnd/AnnotationCollector.java,AnnotationCollector,parseServiceDependencyAnnotation,#Annotation#boolean#,324

Before Change


        // added callback
        writer.putString(annotation, EntryParam.added, (!m_isField) ? m_method : null);

        if (temporal)
        {
            // timeout attribute (only valid if parsing a temporal service dependency)
            writer.putString(annotation, EntryParam.timeout, null);
        }
        else
        {
            // required attribute (not valid if parsing a temporal service dependency)
            writer.putString(annotation, EntryParam.required, null);

            // changed callback
            writer.putString(annotation, EntryParam.changed, null);

After Change


        // timeout parameter
        writer.putString(annotation, EntryParam.timeout, null);
        Long t = (Long) annotation.get(EntryParam.timeout.toString());
        if (t != null && t.longValue() < -1)
        {
            throw new IllegalArgumentException("Invalid timeout value " + t + " in ServiceDependency annotation in class " + m_className);
        }
        
        // required attribute (not valid if parsing a temporal service dependency)
        writer.putString(annotation, EntryParam.required, null);

        // changed callback
        writer.putString(annotation, EntryParam.changed, null);